Skip to content

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 12, 2022

Bumps rails-settings-cached from 2.6.0 to 2.8.2.

Release notes

Sourced from rails-settings-cached's releases.

v2.8.2

  • Add supports for Ruby 3.1, Rails 7.0;

v2.8.1

  • Fix for Rails 5, RequestStore cache not assign issue.

v2.8.0

  • Add Middleware for only enable RequestCache in Rails request context. #219, #182

v2.7.1

  • Fix #215 keep scope method compatible with ActiveRecord scope.

v2.7.0

  • Allows define field for assignment more options, and then you can get option by get_field.
  • Export Setting.defined_fields method for get all fields.
  • Add optional scope method to allows us grouping fields on if we need.

Use case:

class Setting < RailsSettings::Base
  # cache_prefix { "v1" }
scope :application do
field :app_name, default: "Rails Settings", validates: { presence: true, length: { in: 2..20 } }
field :host, default: "http://example.com", readonly: true
field :default_locale, default: "zh-CN", validates: { presence: true, inclusion: { in: %w[zh-CN en jp] } }, option_values: %w[en jp zh-CN], foo: 123
field :admin_emails, type: :array, default: %w[[email protected]]
# lambda default value
field :welcome_message, type: :string, default: -&gt; { &quot;welcome to #{self.app_name}&quot; }, validates: { length: { maximum: 255 } }
# Override array separator, default: /[\n,]/ split with \n or comma.
field :tips, type: :array, separator: /[\n]+/

end
scope :limits do
field :user_limits, type: :integer, default: 20
field :exchange_rate, type: :float, default: 0.123
field :captcha_enable, type: :boolean, default: true
end
field :notification_options, type: :hash, default: {
send_all: true,
logging: true,
sender_email: "[email protected]"
}
field :readonly_item, type: :integer, default: 100, readonly: true
end
</tr></table>

... (truncated)

Changelog

Sourced from rails-settings-cached's changelog.

Visit:

https://github.com/huacnlee/rails-settings-cached/releases

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rails-settings-cached](https://github.com/huacnlee/rails-settings-cached) from 2.6.0 to 2.8.2.
- [Release notes](https://github.com/huacnlee/rails-settings-cached/releases)
- [Changelog](https://github.com/huacnlee/rails-settings-cached/blob/main/CHANGELOG.md)
- [Commits](huacnlee/rails-settings-cached@v2.6.0...v2.8.2)

---
updated-dependencies:
- dependency-name: rails-settings-cached
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 21, 2022

Superseded by #379.

@dependabot dependabot bot closed this Dec 21, 2022
@dependabot dependabot bot deleted the dependabot/bundler/rails-settings-cached-2.8.2 branch December 21, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants